package com.yiyun.blog.service;

import com.yiyun.blog.dao.pojo.SysUser;
import com.yiyun.blog.vo.Result;
import com.yiyun.blog.vo.UserVo;

/**
 * @author Bao
 * @create 2022-01-09-11:23
 */
public interface SysUserService {

    UserVo findUserVoById(Long id);

    /**
     *
     * 通过id查询用户信息
     */
    SysUser findUserById(Long id);

    //登录的用户名密码，查看用户是否已注册
    SysUser findUser(String account, String password);

    //通过token 查找用户信息
    Result findUserByToken(String token);

    //通过账户 查看用户是否存在
    SysUser findUserByAccount(String account);

    //注册用户信息的存储
    void save(SysUser sysUser);
}
